export const formConfig = {
	inline: false,
	showBtn: true,
	labelPosition: 'top',
	labelWidth: '120px',
	column: [
		// {
		// 	uploadTip: '项目大类照片',
		// 	tip: '',
		// 	prop: 'itemLogo',
		// 	type: 'upload',
		// 	labelPosition: 'top',
		// 	showFileList: false,
		// 	limit: 1,
		// 	multiple: false,
		// 	span: 24,
		// },
		{
			label: '项目大类名称',
			prop: 'itemName',
			maxlength: '50',
			showWordLimit: true,
			type: 'text',
			span: 24,
			rules: [{ required: true, message: '请输入项目大类名称' }],
		},
		{
			label: '是否启用',
			prop: 'itemStatus',
			type: 'radio',
			defaultValue: 1,
			dicData: [
				{
					label: '停用',
					value: 0,
				},
				{
					label: '启用',
					value: 1,
				},
			],
			rules: [{ required: true, message: '请选择是否启用' }],
			span: 24,
		},
		// {
		// 	label: '服务类型',
		// 	prop: 'serviceType',
		// 	propName: 'serviceTypeLabel',
		// 	type: 'remoteSelect',
		// 	code: 'SERVICE_TYPE',
		// 	api: 'getDictItemList',
		// 	dataType: 'number',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	span: 24,
		// 	rules: [{ required: true, message: '请选择服务类型' }],
		// },
	],
}

export const apiStr = {
	index: 'management_omSupItem_page',
	add: 'management_omSupItem_add',
	edit: 'management_omSupItem_edit',
	delete: 'management_omSupItem_del',
}
export const auth = {
	...apiStr,
}

export const baseConfig = {
	pageName: '服务项目大类',
	dictcodes: ['SERVICE_TYPE'],
	rowKey: 'id',
	addLabel: '新增',
	tipLabel: 'itemName',
	exportMqTopic: '/ning/export/',
	api: {
		...apiStr,
	},
	auth,
	menuBtn: [],
	dialogConfig: {
		width: '55%',
	},
	formConfig,
}
